#include <cstdio>
#include <iostream>
#include <csignal>

#include "common/XmlUtils.hpp"
#include "common/Utils.hpp"
#include "common/log.hpp"
#include "folder-manager/FolderSerializer.hpp"

const PAN_CHAR_T PANTHEIOS_FE_PROCESS_IDENTITY[] = "efs";

using namespace efs;


int main(int argc, char *argv[])
{
	pantheios::log_INFORMATIONAL("Start");

	rapidxml::xml_document<> base_xml;
	rapidxml::xml_document<> copy_xml;

	FolderSerializer fs;
	fs.makeFolderXML(base_xml, "./");

	cloneXml(base_xml, copy_xml);

	std::cout << XmlToString(copy_xml) << std::endl;

	pantheios::log_INFORMATIONAL("Exit");
	std::cout << isFileBusy("test_folder_1/") << std::endl;

	return 0;
}
